<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.docs.docs.DocManager" %>
<%@ page import="weaver.docs.docs.ShareManageDocOperation" %>
<%@ page import="weaver.docs.docs.DocComInfo" %>
<%
    JSONObject jsonData = new JSONObject();
    int docid = Util.getIntValue( request.getParameter( "docid" ) );
    int seccategory = Util.getIntValue( request.getParameter( "seccategory" ) );
    DocComInfo dci = new DocComInfo();
    //指定文档的id:8
    String subject=Util.null2String(dci.getDocname("8"));
    //如果目标子目录允许文件名重复
    DocManager docManager = new DocManager();
    //指定文档的id:8
    docManager.setId(docid);
    docManager.setUserid(1);
    docManager.setDoccreaterid(1);
    docManager.setUsertype("0");
    docManager.setDocsubject(subject);
    docManager.setClientAddress("");
    docManager.setMaincategory(0);
    docManager.setSubcategory(0);
    docManager.setSeccategory(seccategory);
    docManager.setCustomDataIdMapping(null);
    docManager.moveDoc();
    ShareManageDocOperation manager = new ShareManageDocOperation();
    manager.copyMoveDocShareBySec(seccategory,docid);
    out.print( jsonData.toJSONString() );
%>
